package com.dailyblue.project.estate.car.feign;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.dailyblue.project.estate.car.feign.PlanB.SentinelPlanB;
import com.dailyblue.project.estate.commons.bean.Owner;
import com.dailyblue.project.estate.commons.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Auther:Liu
 * @Testname:OwnerFeign
 * @Date:2025/9/19 11:19
 */
@FeignClient(name = "estate-owner"       //搜索发现owner
        ,path = "/owner"                //方法前缀
        ,fallback = SentinelPlanB.class //添加备选方案
)
public interface OwnerFeign {

    @GetMapping("/findOne/{id}")
    JsonResult<Owner> getOwner(@PathVariable("id") String id);
}
